package cn.jx.asc.user.pojo;

import java.util.List;

public class Sensor {
    private Integer sensorId;

    private String sensorName;

    private Short timeInterval;

    private Integer groupId;

    private List<Record> recordList;

    public List<Record> getRecordList() {
        return recordList;
    }

    public void setRecordList(List<Record> recordList) {
        this.recordList = recordList;
    }

    public Integer getSensorId() {
        return sensorId;
    }

    public void setSensorId(Integer sensorId) {
        this.sensorId = sensorId;
    }

    public String getSensorName() {
        return sensorName;
    }

    public void setSensorName(String sensorName) {
        this.sensorName = sensorName == null ? null : sensorName.trim();
    }

    public Short getTimeInterval() {
        return timeInterval;
    }

    public void setTimeInterval(Short timeInterval) {
        this.timeInterval = timeInterval;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    @Override
    public String toString() {
        return "Sensor{" +
                "sensorId=" + sensorId +
                ", sensorName='" + sensorName + '\'' +
                ", timeInterval=" + timeInterval +
                ", groupId=" + groupId +
                ", recordList=" + recordList +
                '}';
    }
}